package com.sname.car.common.constants;

import org.springframework.stereotype.Component;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author songx
 * @date 2018/9/21 22:13
 */
@Component
public class Constants {

    /**
     * Author song  醉美柳舞之众星捧月
     * Date & Time  2018/9/21 22:13
     * Description  常量类
     */

    /** 状态码 **/
    public static final int RESP_STATUS_CODE = 200;
    public static final int HTTP_ERROR_CODE = 400;
    public static final int RESP_STATUS_NOAUTH = 401;
    public static final int RESP_STATUS_INTERNAL_ERROR = 500;

    /** 客户端版本 */
    public static final String REQUEST_VERSION_KEY = "version";

    /** 抛出异常 */
    public static final String ERROR = "服务器内部错误！";
    public static final String ARGS_ERROR = "参数校验失败！";

    /** 16位加密key **/
    public static final String KEY_16 = "abcdef0123456789";

    /** redis连接池 **/
    public static final int REDIS_POOL = 15;

    /** redis过期时间 **/
    public static final int REDIS_EXPIRE =60*60*24;

    /** redis 缓存前缀 **/
    public static final String TOKEN_PREFIX = "token.";
    public static final String USER_PREFIX = "user.";
    public static final String VERIFYCODE_PREFIX = "verify.code.";

    /** 与 客户端相约的token **/
    public static final String TOKEN = "token";

    /** 单车状态 **/
    public static final Byte NOT_VERYFY = 1;
    //未认证
    public static final Object BIKE_UNLOCK = 2;
    //单车解锁
    public static final Object BIKE_LOCK = 1;
    //单车锁定
    public static final Byte RIDE_END = 2;
    //骑行结束

    /** 秒滴SMS start */
    public static final String MDSMS_ACCOUNT_SID = "5d5177499fbf4f039b5b4f4b6695ec26";
    public static final String MDSMS_AUTH_TOKEN = "da29b46c11b1465387200141cf99c084";
    public static final String MDSMS_REST_URL = "https://api.miaodiyun.com/20150822";
    public static final String MDSMS_VERCODE_TPLID = "108120306";
    /**秒滴SMS end**/

    /***七牛keys start****/
    public static final String QINIU_ACCESS_KEY = "rMNLHGzKthiHbpALgbuV1UULI28EDYrJHo8-KE_i";
    public static final String QINIU_SECRET_KEY = "Va_J0CKUFUUPBpXOFjeWvXyUW7MtmUeAKzhIOmBy";
    public static final String QINIU_HEAD_IMG_BUCKET_NAME = "mamabike";
    public static final String QINIU_HEAD_IMG_BUCKET_URL = "p0cj2p6dz.bkt.clouddn.com";
    /***七牛keys end****/

    /** 百度云推送 start */
    public static final String BAIDU_YUN_PUSH_API_KEY = "1QR6MmbZCXRe2ETcOD70WwO4";
    public static final String BAIDU_YUN_PUSH_SECRET_KEY = "kbefpluOXhXOm9di4IRogkbk7Z0Q0VgQ";
    public static final String CHANNEL_REST_URL = "api.push.baidu.com";
    /**百度云推送end**/

    /** RSA的公钥对 **/
    public static final String PUBLIC_KEY_RSA = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDSbpZ3PrRVOT4JVDMAoaZd Mbc7UOLoAbL5kONOZ2+itWtO+TXwYYqRke0KdvtEP6obsjuT3ptpV8cK0RmS rkmSzdXovhxPoGMX8kEVMX6Z7qNjF5Nd/86826Ealw6t/WWWyjmsCZwliTPP PQ9TogwsVUUKR1pzQ2/x02fmryE/sQIDAQAB";
}
